package com.bdqn.t350.service;

import com.bdqn.t350.dao.BaseDao;
import com.bdqn.t350.dao.ElectricityDao;
import com.bdqn.t350.dao.impl.ElectricityDaoImp;
import com.bdqn.t350.entity.LineDataEntity;

import java.util.List;

public class ElectricityServiceImp implements ElectricityService {

    ElectricityDao electricityDao = new ElectricityDaoImp();

    @Override
    public List<String> getElectricityTimeBiz() {
        return electricityDao.getElectricityTime();
    }

    @Override
    public List<String> findByElectricityNameBiz() {
        return electricityDao.findByElectricityName();
    }

    @Override
    public LineDataEntity findByElectricityNameCountBiz(String name) {
        return electricityDao.findByElectricityNameCount(name);
    }
}
